Skip to content

fix(stow-guard): a typed /stow quick records no fresh-restart offer - #298

Merged
arjmad merged 3 commits into
mainfrom
fm/fm-stow-quick-no-restart-offer-1123
Nov 23, 2026
Merged

arjmad merged 3 commits into
mainfrom
fm/fm-stow-quick-no-restart-offer-1123

Conversation

@arjmad

@arjmad arjmad commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

A typed /stow quick no longer records a fresh-restart offer. A quick save never claims reset-safe (#297), so its offer (#295) could only sit until its 2-hour TTL.

/stow              -> offer   (unchanged)
/stow full         -> offer   (unchanged)
/stow quick [...]  -> no offer (new; any case, any whitespace)
/stow quickly      -> offer   (not the quick mode)

Evidence

  • New test_typed_stow_quick_records_no_offer in tests/fm-stow-guard.test.sh (/stow quick, tab/whitespace-padded, extra args, newline-separated, /stow QUICK). It fails on main ("typed quick prompt 1 recorded an offer") and passes with the fix; all 19 guard tests pass.
  • tests/fm-stow-cascade.test.sh and tests/fm-stow-guard-prompt-live-e2e.test.sh pass; bin/fm-lint.sh clean on changed shell files.

Merge Danger

Door: two-way
Blast Radius: only the stow guard's UserPromptSubmit path for a typed /stow quick; worst case a quick save offers no restart, which it never could use anyway.

Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved

@arjmad

arjmad commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

docs/fork-decisions/2026-11-22-typed-stow-restarts-helm.md:7: The records that describe who writes the restart offer still say any typed /stow records one. A typed /stow quick now records none. This record (line 7, "when the lock-holding primary's prompt is /stow itself") and the bin/fm-helm-refresh.sh header (lines 26-30, offer made "when the captain typed /stow") were not updated, and neither was docs/scripts.md line 322. Fix: add the quick exception to these descriptions, or add a dated fork-decision record that amends the typed-stow record, as docs/fork-decisions.md says a later decision should.

Failure scenario: An agent investigating why bin/fm-helm-refresh.sh request refused after the captain typed /stow quick reads the helm-refresh header and the fork record. Both say a typed /stow records the offer, so the agent treats the missing offer as a bug in the prompt hook instead of intended behavior.

@arjmad

arjmad commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Fixed in 756daf9: the fork record, the fm-helm-refresh.sh header and docs/scripts.md now name the /stow quick exception.

@arjmad

arjmad commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Code review: Claude Code /code-review (medium) ran on this diff; each finding is posted inline and was fixed or answered in its thread.
Sol: 2 rounds, gpt-6.2-sol, approved

@arjmad
arjmad merged commit 0af9e60 into main Nov 23, 2026
33 checks passed
@arjmad
arjmad deleted the fm/fm-stow-quick-no-restart-offer-1123 branch November 23, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant